﻿ using System;

namespace Sven.Web.Framework
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class AjaxResult
    {
        public AjaxResult()
        {
            this.Code = -1;
            this.Message = "";
            this.RedirectUrl = "";
            this.Result = "";
        }

        /// <summary>
        /// 状态码 0 代表请求正常
        /// -1：失败
        /// </summary>
        public int Code { get; set; }
          
        /// <summary>
        /// 文字说明
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 跳转链接
        /// </summary>
        public string RedirectUrl { get; set; }

        /// <summary>
        /// 返回的结果数据
        /// </summary>
        public object Result { get; set; }

    }
}
